package com.imessage.service;

import com.bean.BusinessGroup;
import com.bean.BusinessTaskDetail;
import com.bean.DeviceVirtual;
import com.imessage.type.BusinessTaskCmd;

public interface TaskService {


    public BusinessTaskDetail getNeedTaskBusinessTaskDetail();

    public BusinessTaskDetail getNewBusinessTaskDetail(
            BusinessTaskCmd nextBusinessTaskCmd,DeviceVirtual deviceVirtual);

    public void updateFinishBusinessTaskDetail(BusinessTaskDetail businessTaskDetail,String msg);

    public void updateRunBusinessTaskDetail(BusinessTaskDetail businessTaskDetail,int dealNum);

    public int saveBusinessTaskFromAdd(BusinessGroup businessGroup, String msg,String imgName,String path);


    public BusinessTaskDetail createWumaConfig(DeviceVirtual deviceVirtual);

    public BusinessTaskDetail createSingleMsg(DeviceVirtual deviceVirtual);

    public BusinessTaskDetail createBatchMsg(DeviceVirtual deviceVirtual);

    public BusinessTaskDetail findBusinessTaskDetailByRandom(BusinessTaskCmd businessTaskCmd);


    public void clearBusinessTask(DeviceVirtual deviceVirtual);

    public int saveBusinessTaskFromList(DeviceVirtual deviceVirtual,BusinessTaskCmd businessTaskCmd);
}
